package com.tlgen.orm.config;

import com.tlgen.orm.common.Model;
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@ConditionalOnClass(Model.class)
@Configuration
@EnableConfigurationProperties(SpeedProperties.class)
public class ModelAutoConfig {

    @ConditionalOnBean(Model.class)
    @Bean
    public Model model() {
        return new Model();
    }

}
